package com.example.his.api.db.dao;

import com.example.his.api.db.pojo.UserEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public interface UserDao {
  public Set < String > searchUserPermissions( int userId );

  public Integer login( Map param );

  // 更新密码
  public String searchUsernameById( int userId );

  public int updatePassword( Map param );

  // 分页
  public ArrayList < HashMap > searchByPage( Map param );

  public Long searchCount( Map param );

  // 新增
  public int insert( UserEntity user );

  // 修改
  public HashMap searchById( int userId );

  public int update( Map param );

  // 删除
  public int deleteByIds( Integer[] ids );

  // 人员离职
  public int dismiss( int userId );

}




